﻿

function getTypeImage(type) {
    var typeImage = 'right.gif';
    switch (type) {
        case 'right':
            typeImage = 'right.gif';
            break;
        case 'error':
            typeImage = 'wrong.gif';
            break;
        case 'notice':
            typeImage = 'notice.gif';
            break;

    }
    return typeImage;
}

//提示框
function Tip(content, type) {
    layer.open({
        content: content,
        skin: 'msg',
        shade: 0,
        time: 2000 //2秒后自动关闭
    });

    //window.setTimeout(reload, 2000);
    //function reload() {
    //    window.parent.location.reload();
    //}


    //var index = parent.layer.getFrameIndex(window.name);
    //parent.layer.close(index);
}

